package com.headline.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.headline.pojo.Headline;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.headline.pojo.VO.portalSelectVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
* @author 断念残情
* @description 针对表【news_headline】的数据库操作Mapper
* @createDate 2024-04-11 17:20:21
* @Entity com.headline.pojo.Headline
*/
@Mapper
public interface HeadlineMapper extends BaseMapper<Headline> {

    IPage<Map> pageQuery(IPage page, @Param("portalSelectVO") portalSelectVO portalSelectVO);

    Map showHeadlineDetail(@Param("hid") Integer hid);

    void updatePageViews(Integer hid);

    Headline updateHeadline(Headline headline);
}




